
	function Controller($scope, $http) {

		$scope.master= {isAdmin: false};
		$scope.user= {isAdmin: false};
		$scope.output= {};
		$scope.submitURL="/registeruser";
		$scope.update = function(user) {
			$scope.master= angular.copy(user);
			$http.post($scope.submitURL, $scope.master).success(function(data){
				$scope.master={};
				window.location.href=window.location.href;
				});
		}
		$scope.reset = function() {
			$scope.user = angular.copy($scope.master);
			$scope.form.$setPristine();
		};



	}

